package com.soft.blog_project.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="博客信息", description="返回博客详细信息")
public class Blog {

  @ApiModelProperty(value="博客ID")
  private long blogId;
  @ApiModelProperty(value="类型id")
  private long typeId;//类型id
  @ApiModelProperty(value="标题")
  private String title;//标题
  @ApiModelProperty(value="内容")
  private String content;//内容
  @ApiModelProperty(value="时间（格式为2023-08-21）")
  private java.sql.Date time;//时间（格式为2023-08-21）
  @ApiModelProperty(value="博客图片")
  private String blogImg;//博客图片
  @ApiModelProperty(value="用户ID")
  private long userId;//用户id


  public long getBlogId() {
    return blogId;
  }

  public void setBlogId(long blogId) {
    this.blogId = blogId;
  }


  public long getTypeId() {
    return typeId;
  }

  public void setTypeId(long typeId) {
    this.typeId = typeId;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }


  public java.sql.Date getTime() {
    return time;
  }

  public void setTime(java.sql.Date time) {
    this.time = time;
  }


  public String getBlogImg() {
    return blogImg;
  }

  public void setBlogImg(String blogImg) {
    this.blogImg = blogImg;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }

  @Override
  public String toString() {
    return "Blog{" +
            "blogId=" + blogId +
            ", typeId=" + typeId +
            ", title='" + title + '\'' +
            ", content='" + content + '\'' +
            ", time=" + time +
            ", blogImg='" + blogImg + '\'' +
            ", userId=" + userId +
            '}';
  }
}
